<#noparse>
(function($){
var myflow = $.myflow;
var basePath=myflow.config.basePath;

var  myRootPath=getRootPath();
$.extend(true,myflow.config.rect,{
	attr : {
	r : 8,
	fill : '#F6F7FF',
	stroke : '#03689A',
	"stroke-width" : 2
},margin:0
});

//注释初始化属性改到myflow 内部初始化
//$.extend(true,myflow.config.props.props,{
//	processId : {name:'processId', label:'流程标志标识', value:'', editor:function(){return new myflow.editors.inputEditor();}},
//	name : {name:'name', label:'流程名称', value:'', editor:function(){return new myflow.editors.inputEditor();}},
//	documentation : {name:'documentation', label:'流程图描述', value:'', editor:function(){return new myflow.editors.inputEditor();}}
//	
//});
</#noparse>

$.extend(true,myflow.config.tools.states,{
	start : {
				showType: 'image',
				type : 'start',
				name : {text:'<<start>>'},
				text : {text:'开始'},
				img : {src : basePath+'/images/process/img/48/start_event_empty.png',width : 48, height:48},
				attr : {width:50 ,heigth:50 },
				props : {
					name: {name:'name',label: '名称', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'开始'},
//					documentation: {name:'documentation', label : '说明', value:'', editor: function(){return new myflow.editors.inputEditor();}},
//					isSequential: {name:'isSequential', label : '执行人员是否并行', value:'', editor: function(){return new myflow.editors.selectEditor([{name:'串行',value:true},{name:'并行',value:false}]);}},
					extensionElements: {name:'extensionElements', label : '自定义表单属性', value:'', editor: function(){return new myflow.editors.formEditor();}, value:'自定义表单属性'}
				}},
			end : {showType: 'image',type : 'end',
				name : {text:'<<end>>'},
				text : {text:'结束'},
				img : {src : basePath+'/images/process/img/48/end_event_terminate.png',width : 48, height:48},
				attr : {width:50 ,heigth:50 },
				props : {
					name: {name:'name',label: '节点名称', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'结束'},
					documentation: {name:'documentation', label : '节点说明', value:'', editor: function(){return new myflow.editors.inputEditor();}}
//					temp2: {name:'temp2', label : '选择', value:'', editor: function(){return new myflow.editors.selectEditor([{name:'aaa',value:1},{name:'bbb',value:2}]);}}
				}},
			
			state : {showType: 'text',type : 'state',
				name : {text:'<<state>>'},
				text : {text:'状态'},
				img : {src : basePath+'/images/process/img/48/task_empty.png',width : 48, height:48},
				props : {
					text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'状态'},
					temp1: {name:'temp1', label : '文本', value:'', editor: function(){return new myflow.editors.inputEditor();}},
					temp2: {name:'temp2', label : '选择', value:'', editor: function(){return new myflow.editors.selectEditor([{name:'aaa',value:1},{name:'bbb',value:2}]);}}
				}},
			join : {showType: 'image',type : 'join',
				name : {text:'<<join>>'},
				text : {text:'合并'},
				img : {src : basePath+'/images/process/img/48/gateway_parallel.png',width :48, height:48},
				attr : {width:50 ,heigth:50 },
				props : {
					name: {name:'name', label: '节点名称', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'合并'},
					documentation: {name:'documentation', label: '说明', value:'', editor: function(){return new myflow.editors.inputEditor();}}
//					temp2: {name:'temp2', label : '选择', value:'', editor: function(){return new myflow.editors.selectEditor('select.json');}}
				}},
<#list workflowNodeConfigVos as vo>
	${vo.nodeType} : {showType: '${vo.showType}',type : '${vo.nodeType}',
                name : {text:'<<${vo.nodeType}>>'},
                text : {text:'${vo.name}'},
                img : {src : basePath+'${vo.nodeIcon}',width :48, height:48},
                attr : {${vo.nodeStyle}},
                props : {
                	<#list vo.nodeVos as nodeVo>
                   ${nodeVo.attributeEnglishName}: {name:'${nodeVo.attributeEnglishName}', label: '${nodeVo.attributeChineseName}',  editor:${nodeVo.controlContent}, value:'${nodeVo.controlInitValue!""}'}<#if nodeVo_has_next>,</#if>
                	</#list>	
                }},
</#list>				
			decision : {showType: 'image',type : 'decision',
                name : {text:'<<decision>>'},
                text : {text:'决定'},
                img : {src : basePath+'/images/process/img/48/gateway_parallel.png',width :48, height:48},
                attr : {width:50 ,heigth:50 },
                props : {
                    name: {name:'name', label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'决定'},
                    expr: {name:'expr', label : '表达式', value:'', editor: function(){return new myflow.editors.inputEditor();}},
                    documentation: {name:'documentation', label : '描述', value:'', editor: function(){return new myflow.editors.inputEditor();}}
                }}
});
})(jQuery);